#!/bin/bash -e
# shellcheck disable=SC2034

### Base environment
__BASE_ENV_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)

BASE_DIR_EXAMPLES=${__BASE_ENV_DIR}/examples
BASE_DIR_SCRIPT=${__BASE_ENV_DIR}/scripts
BASE_DIR_BUILD=${__BASE_ENV_DIR}/build

FILE_LICENSE=${__BASE_ENV_DIR}/LICENSE
FILE_README=${__BASE_ENV_DIR}/README.md
FILE_VERSION=${__BASE_ENV_DIR}/VERSION

SCRIPT_ENVIRONMENT=${__BASE_ENV_DIR}/environment.sh
SCRIPT_BUILDER=${__BASE_ENV_DIR}/builder.sh
SCRIPT_RELEASE=${__BASE_ENV_DIR}/release.sh

SCRIPT_IN_FUNCTION=${BASE_DIR_SCRIPT}/FUNCTIONS.in
SCRIPT_IN_SELF_INSTALLER=${BASE_DIR_SCRIPT}/self-installer.sh.in
SCRIPT_IN_INSTALLER=${BASE_DIR_SCRIPT}/installer.sh.in
SCRIPT_IN_INSTALLER_CUSTOMED=${BASE_DIR_SCRIPT}/installer.custom.sh.in

SCRIPT_FUNCTION=FUNCTIONS
SCRIPT_INSTALLER=installer.sh
SCRIPT_SELF_INSTALLER=self-installer.sh

### Configure variables
INSTALLER_MODE=GUI
INSTALLER_CUSTOMED=false
